home *** CD-ROM | disk | FTP | other *** search
- <script>
-
- var useLandscape = %4;
- var paperSize = "%5";
-
- function InitExtra()
- {
- if ( useLandscape )
- document.layoutform.orientation[1].checked = true;
- else
- document.layoutform.orientation[0].checked = true;
-
- var i;
- for ( i = 0; i < document.layoutform.papersize.length; i++)
- {
- if ( document.layoutform.papersize.options[i].value == paperSize )
- {
- document.layoutform.papersize.selectedIndex = i;
- break;
- }
- }
-
- if ( paperSize == "0" )
- InitCustomSize();
-
- OnSetNoPrinter();
- }
-
- function OnSetNoPrinter()
- {
- var isDisabled = document.layoutform.usenoprinterchk[0].checked;
-
- document.layoutform.orientation.disabled = isDisabled;
-
- if ( document.layoutform.papersize.options[document.layoutform.papersize.selectedIndex].value == "0" )
- {
- document.layoutform.inchmm[0].disabled = isDisabled;
- document.layoutform.inchmm[1].disabled = isDisabled;
- document.layoutform.visiblewidth.disabled = isDisabled;
- document.layoutform.visibleheight.disabled = isDisabled;
- }
- document.layoutform.orientation[0].disabled = isDisabled;
- document.layoutform.orientation[1].disabled = isDisabled;
- document.layoutform.papersize.disabled = isDisabled;
- }
-
- function ChangePaperSize(d)
- {
- if ( ( (paperSize == "0") && (d != "0") ) || ( (paperSize != "0") && (d == "0") ) )
- {
- if ( !CheckPrintWhenScheduling() )
- return;
-
- document.layoutform.layout.value = "4";
- document.layoutform.action = "%1";
- document.layoutform.submit();
- }
- }
-
- function CheckCustom()
- {
- if ( document.layoutform.usenoprinterchk[0].checked )
- {
- document.layoutform.usenoprinter.value = "true";
- document.layoutform.layout.value = "2";
- }
- else
- {
- document.layoutform.usenoprinter.value = "false";
- document.layoutform.layout.value = "4";
-
- if ( paperSize == "0" )
- if ( !CheckCustomSize() )
- return false;
- }
-
- return true;
- }
-
- </script>
- <tr>
- <td class="list">
-
- </td>
- <td class="list">
- <table border=0 cellpadding=2 cellspacing=0>
- <tr>
- <td class="list" colspan=2>
- Base your page layout on standard settings or specify a custom layout.
- </td>
- </tr>
- <tr>
- <td class="list" valign="middle" width=5%>
- <input type="radio" name="usenoprinterchk" %2 value="true" onClick="OnSetNoPrinter();">
- <input type="hidden" name="usenoprinter">
- </td>
- <td class="list">
- Use standard layout settings <!-- no printer -->
- </td>
- </tr>
- <tr>
- <td class="list" valign="middle">
- <input type="radio" name="usenoprinterchk" %3 value="false" onClick="OnSetNoPrinter();">
- </td>
- <td class="list">
- Use custom layout settings
- </td>
- </tr>
- <tr>
- <td class='list'> </td>
- <td class='list'>
- <table border=0 cellpadding=2 cellspacing=0>
- <tr>
- <td class='list' valign=middle>
- Orientation:
- </td>
- <td class='list'>
- <table border=0 cellpadding=2 cellspacing=0>
- <tr>
- <td class="list" width=50% nowrap>
- <input type="radio" name="orientation" value="portrait"> Portrait
- </td>
- <td class="list" nowrap>
- <input type="radio" name="orientation" value="landscape"> Landscape
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class='list' valign=middle>
- Paper Size:
- </td>
- <td class='list'>
- <select name='papersize' class='menuFormElement' onchange='ChangePaperSize(this.options[this.selectedIndex].value);'>
- <option value='1'>A4
- <option value='2'>A5
- <option value='3'>B5
- <option value='4'>Legal
- <option value='5'>Letter
- <option value='0'>Custom
- </select>
- </td>
- </tr>
- %6
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-